<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive && !showLogin"/>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive && !showLogin"/>
    <login class="login_main" v-if="showLogin"></login>
  </div>
</template>
<script>
  import Login from "@/views/login/Login"

  export default {
    components: {Login},
    data() {
      return {}
    },
    computed: {
      //是否显示登录界面
      showLogin() {

        return true
      }
    },
  }
</script>
<style lang="stylus">
  body
    margin 0
    #app
      width 100%
      min-height 100vh
</style>